import request from "@/utils/http";

/**
 * 我的申请
 */
export const sendList = (params) => {
    return request({
        url: `/api/blade-workflow/app/process/sendList?category=1749618292081029121&current=1&size=${params.size}`,
        params,
    });
};

/**
 * 申请详情
 */
export const detail = (taskId, processInsId) => {
    return request({
        url: `/api/blade-workflow/app/process/detail?processInsId=${processInsId}`,
    });
};

/**
 * 通过驳回
 */
export const completeTask = (data) => {
    return request({
        url: `/api/blade-workflow/process/completeTask`,
        method: 'post',
        data
    });
};

/**
 * 消息列表
 */
export const messageList = () => {
    return request({
        url: `/api/blade-basic/app/messageTip/list`,
    });
};
/**
 * 未读改成已读
 */
export const messageUpdate = (data) => {
    return request({
        url: `/api/blade-basic/app/messageTip/update`,
        method: 'post',
        data
    });
};

